<?php
namespace Club\Model;
use Think\Model;
class FundingTrafficModel extends Model {
    protected $_auto = [

        ["meet_time", "strtotime", 3, "function"],
        ["start_time", "strtotime", 3, "function"],
        ["end_time", "strtotime", 3, "function"],
        ["create_time", "strtotime", 3, "function"],
        ["update_time", "strtotime", 3, "function"],
        ["create_time", "time", 1, "function"],
        ["update_time", "time", 2, "function"],
        ["meet_time", "time", 1, "function"],
        ["start_time", "time", 1, "function"],
        ["end_time", "time", 1, "function"],
    ];
    protected $_validate = [
        ["id", "require", "ID必须填写!"],
        ["principal_id", "require", "主键ID必须填写!"],
        ["traffic_type", "require", "交通方式必须填写!"],
        ["departure", "require", "出发地必须填写!"],
        ["destination", "require", "目的地必须填写!"],
        ["meet_time", "require", "集合时间必须填写!"],
        ["meet_spot", "require", "集合地点必须填写!"],
        ["flight", "require", "编号必须填写!"],
        ["start_time", "require", "出发时间必须填写!"],
        ["end_time", "require", "到达时间必须填写!"],
        ["start_station", "require", "出发站点必须填写!"],
        ["end_station", "require", "目的站点必须填写!"],
        ["create_time", "require", "创建时间必须填写!"],
        ["update_time", "require", "更新时间必须填写!"],
    ];
    public $excel = false;
    public $fieldMap = [
        "id"=>[
            "type"=>"input",
            "name"=>"ID",
            "lists"=>true,
            "search"=>true,
            "input"=>false,
            "required"=>true,
            "detail"=>true,
            "excel"=>true,
            "content"=>"",
            "list_specify"=>"",
            "update_specify"=>"",
            "detail_specify"=>"",
        ],
        "principal_id"=>[
            "type"=>"input",
            "name"=>"主键ID",
            "lists"=>true,
            "search"=>false,
            "input"=>false,
            "required"=>true,
            "detail"=>true,
            "excel"=>true,
            "content"=>"",
            "list_specify"=>"",
            "update_specify"=>"",
            "detail_specify"=>"",
        ],
        "traffic_type"=>[
            "type"=>"select",
            "name"=>"交通方式",
            "lists"=>true,
            "search"=>false,
            "input"=>true,
            "required"=>true,
            "detail"=>true,
            "excel"=>true,
            "content"=>"飞机,火车,汽车,轮船,其他",
            "list_specify"=>"",
            "update_specify"=>"",
            "detail_specify"=>"",
        ],
        "departure"=>[
            "type"=>"input",
            "name"=>"出发地",
            "lists"=>true,
            "search"=>false,
            "input"=>true,
            "required"=>true,
            "detail"=>true,
            "excel"=>true,
            "content"=>"",
            "list_specify"=>"",
            "update_specify"=>"",
            "detail_specify"=>"",
        ],
        "destination"=>[
            "type"=>"input",
            "name"=>"目的地",
            "lists"=>true,
            "search"=>false,
            "input"=>true,
            "required"=>true,
            "detail"=>true,
            "excel"=>true,
            "content"=>"",
            "list_specify"=>"",
            "update_specify"=>"",
            "detail_specify"=>"",
        ],
        "meet_time"=>[
            "type"=>"datetime",
            "name"=>"集合时间",
            "lists"=>true,
            "search"=>false,
            "input"=>true,
            "required"=>true,
            "detail"=>true,
            "excel"=>true,
            "content"=>"",
            "list_specify"=>"",
            "update_specify"=>"",
            "detail_specify"=>"",
        ],
        "meet_spot"=>[
            "type"=>"input",
            "name"=>"集合地点",
            "lists"=>true,
            "search"=>false,
            "input"=>true,
            "required"=>true,
            "detail"=>true,
            "excel"=>true,
            "content"=>"",
            "list_specify"=>"",
            "update_specify"=>"",
            "detail_specify"=>"",
        ],
        "flight"=>[
            "type"=>"input",
            "name"=>"编号",
            "lists"=>true,
            "search"=>false,
            "input"=>true,
            "required"=>true,
            "detail"=>true,
            "excel"=>true,
            "content"=>"",
            "list_specify"=>"",
            "update_specify"=>"",
            "detail_specify"=>"",
        ],
        "start_time"=>[
            "type"=>"datetime",
            "name"=>"出发时间",
            "lists"=>true,
            "search"=>false,
            "input"=>true,
            "required"=>true,
            "detail"=>true,
            "excel"=>true,
            "content"=>"",
            "list_specify"=>"",
            "update_specify"=>"",
            "detail_specify"=>"",
        ],
        "end_time"=>[
            "type"=>"datetime",
            "name"=>"到达时间",
            "lists"=>true,
            "search"=>false,
            "input"=>true,
            "required"=>true,
            "detail"=>true,
            "excel"=>true,
            "content"=>"",
            "list_specify"=>"",
            "update_specify"=>"",
            "detail_specify"=>"",
        ],
        "start_station"=>[
            "type"=>"input",
            "name"=>"出发站点",
            "lists"=>true,
            "search"=>false,
            "input"=>true,
            "required"=>true,
            "detail"=>true,
            "excel"=>true,
            "content"=>"",
            "list_specify"=>"",
            "update_specify"=>"",
            "detail_specify"=>"",
        ],
        "end_station"=>[
            "type"=>"input",
            "name"=>"目的站点",
            "lists"=>true,
            "search"=>false,
            "input"=>true,
            "required"=>true,
            "detail"=>true,
            "excel"=>true,
            "content"=>"",
            "list_specify"=>"",
            "update_specify"=>"",
            "detail_specify"=>"",
        ],
        "create_time"=>[
            "type"=>"datetime",
            "name"=>"创建时间",
            "lists"=>false,
            "search"=>false,
            "input"=>false,
            "required"=>true,
            "detail"=>true,
            "excel"=>true,
            "content"=>"",
            "list_specify"=>"",
            "update_specify"=>"",
            "detail_specify"=>"",
        ],
        "update_time"=>[
            "type"=>"datetime",
            "name"=>"更新时间",
            "lists"=>false,
            "search"=>false,
            "input"=>false,
            "required"=>true,
            "detail"=>true,
            "excel"=>true,
            "content"=>"",
            "list_specify"=>"",
            "update_specify"=>"",
            "detail_specify"=>"",
        ],
    ];
}